package com.worthtech.billportal.bean;

/**
 * WtPepPayinfoId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WtPepPayinfoId implements java.io.Serializable {

	// Fields

	private String payDate;
	private String payInAccount;
	private String payInTrace;

	// Constructors

	/** default constructor */
	public WtPepPayinfoId() {
	}

	/** full constructor */
	public WtPepPayinfoId(String payDate, String payInAccount, String payInTrace) {
		this.payDate = payDate;
		this.payInAccount = payInAccount;
		this.payInTrace = payInTrace;
	}

	// Property accessors

	public String getPayDate() {
		return this.payDate;
	}

	public void setPayDate(String payDate) {
		this.payDate = payDate;
	}

	public String getPayInAccount() {
		return this.payInAccount;
	}

	public void setPayInAccount(String payInAccount) {
		this.payInAccount = payInAccount;
	}

	public String getPayInTrace() {
		return this.payInTrace;
	}

	public void setPayInTrace(String payInTrace) {
		this.payInTrace = payInTrace;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtPepPayinfoId))
			return false;
		WtPepPayinfoId castOther = (WtPepPayinfoId) other;

		return ((this.getPayDate() == castOther.getPayDate()) || (this
				.getPayDate() != null
				&& castOther.getPayDate() != null && this.getPayDate().equals(
				castOther.getPayDate())))
				&& ((this.getPayInAccount() == castOther.getPayInAccount()) || (this
						.getPayInAccount() != null
						&& castOther.getPayInAccount() != null && this
						.getPayInAccount().equals(castOther.getPayInAccount())))
				&& ((this.getPayInTrace() == castOther.getPayInTrace()) || (this
						.getPayInTrace() != null
						&& castOther.getPayInTrace() != null && this
						.getPayInTrace().equals(castOther.getPayInTrace())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getPayDate() == null ? 0 : this.getPayDate().hashCode());
		result = 37
				* result
				+ (getPayInAccount() == null ? 0 : this.getPayInAccount()
						.hashCode());
		result = 37
				* result
				+ (getPayInTrace() == null ? 0 : this.getPayInTrace()
						.hashCode());
		return result;
	}

}